home *** CD-ROM | disk | FTP | other *** search
/ Inter.Net 55-1 / Inter.Net 55-1.iso / beos / PPBeDevKit.ZIP / PLAYERPR.TAR / PlayerPRO / Source / Import-Export / MADfg.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-12-26  |  2.6 KB  |  103 lines

  1. /********************                        ***********************/
  2. //
  3. //    Player PRO 5.0 - DRIVER SOURCE CODE -
  4. //
  5. //    Library Version 5.0
  6. //
  7. //    To use with MAD Library for Mac: Symantec, CodeWarrior and MPW
  8. //
  9. //    Antoine ROSSET
  10. //    16 Tranchees
  11. //    1206 GENEVA
  12. //    SWITZERLAND
  13. //
  14. //    COPYRIGHT ANTOINE ROSSET 1996, 1997, 1998
  15. //
  16. //    Thank you for your interest in PlayerPRO !
  17. //
  18. //    FAX:                (+41 22) 346 11 97
  19. //    PHONE:             (+41 79) 203 74 62
  20. //    Internet:     RossetAntoine@bluewin.ch
  21. //
  22. /********************                        ***********************/
  23.  
  24. #ifndef __MADFG__
  25. #define __MADFG__
  26.  
  27. #if defined(powerc) || defined (__powerc)
  28. #pragma options align=mac68k
  29. #endif
  30. struct oldPatHeader {
  31.     long    PatternSize;            // Length of pattern: standard = 64
  32.     long    CompressionMode;        // Compression mode, none = 'NONE'
  33.     char    PatternName[ 20];
  34.     long    PatBytes;                // Pattern Size in Bytes
  35.     long    unused2;
  36. };
  37. #if defined(powerc) || defined(__powerc)
  38. #pragma options align=reset
  39. #endif
  40.  
  41. #if defined(powerc) || defined (__powerc)
  42. #pragma options align=mac68k
  43. #endif
  44. struct Command {
  45.     Byte    InstrumentNo;        // Instrument no
  46.     Byte     AmigaPeriod;        // Note, see table
  47.     Byte     EffectCmd;            // Effect cmd
  48.     Byte     EffectArg;            // Effect arg
  49. };
  50. #if defined(powerc) || defined(__powerc)
  51. #pragma options align=reset
  52. #endif
  53.  
  54. #if defined(powerc) || defined (__powerc)
  55. #pragma options align=mac68k
  56. #endif
  57. struct MusicPattern
  58. {                                // Pattern = 64 notes to play
  59.     struct oldPatHeader    header;
  60.     struct Command    Commands[];
  61. };
  62. #if defined(powerc) || defined(__powerc)
  63. #pragma options align=reset
  64. #endif
  65.  
  66. #if defined(powerc) || defined (__powerc)
  67. #pragma options align=mac68k
  68. #endif
  69. struct FileInstrData {
  70.     char     Filename[ 32];        // Instrument's filename
  71.     long     insSize;            // Sample length
  72.     Byte     fineTune;
  73.     Byte     volume;            // Base volume
  74.     short    CompCode;            // Compression Code, 0 = nothing, M3 = MAC3, M6 = MAC6
  75.     short    freq;                // Base frequence, simple, double, quadruple
  76.     Byte    amplitude;            // 8 or 16 bits
  77.     long    loopStart;            // LoopStart
  78.     long    loopLenght;            // LoopLength
  79. };
  80. #if defined(powerc) || defined(__powerc)
  81. #pragma options align=reset
  82. #endif
  83.  
  84. #if defined(powerc) || defined (__powerc)
  85. #pragma options align=mac68k
  86. #endif
  87. struct oldMADSpec
  88. {
  89.     long    MADIdentification;        // Mad Identification: MADG in version 2.0
  90.     char     NameSignature[ 32];    // Music's name
  91.     struct     FileInstrData fid[ 64];    // 64 instruments descriptor
  92.     Byte    PatMax;
  93.     Byte     numPointers;            // Patterns number
  94.     Byte    oPointers[ 128];        // Patterns list
  95.     Byte    Tracks;                    // Tracks number
  96. };
  97. #if defined(powerc) || defined(__powerc)
  98. #pragma options align=reset
  99. #endif
  100.  
  101. typedef struct oldMADSpec oldMADSpec;
  102.  
  103. #endif